-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here

-- local luasnip = require("luasnip")

-- local unlinkgrp = vim.api.nvim_create_augroup("UnlinkSnippetOnModeChange", { clear = true })

-- vim.api.nvim_create_autocmd("ModeChanged", {
-- group = unlinkgrp,
-- pattern = { "s:n", "i:*" },
-- desc = "Forget the current snippet when leaving the insert mode",
-- callback = function(evt)
-- if luasnip.session and luasnip.session.current_nodes[evt.buf] and not luasnip.session.jump_active then
-- luasnip.unlink_current()
-- end
-- end,
-- })
local function map(mode, lhs, rhs, opts)
  local options = { noremap = true }
  if opts then
    options = vim.tbl_extend("force", options, opts)
  end
  vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end

map("", "K", "5k", {})
